home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / usr / share / recovery-mode / options / xfix < prev   
Text File  |  2008-07-30  |  479b  |  22 lines

  1. #!/bin/sh
  2.  
  3. . /usr/share/recovery-mode/l10n.sh
  4.  
  5. if [ ! -f /var/lib/dpkg/info/xserver-xorg.templates ]; then
  6.     # no xserver-xorg template available so nothing to reconfgiure
  7.     exit 1
  8. fi
  9.  
  10. if [ "$1" = "test" ]; then
  11.   echo $(eval_gettext "Try to fix X server")
  12.   exit 0
  13. fi
  14.  
  15. whiptail --infobox $(eval_gettext "The X server reconfiguration is now running.  Your screen may flicker during hardware autodetection.") 8 60
  16.  
  17. sleep 3
  18. dpkg-reconfigure -phigh xserver-xorg
  19. sleep 3
  20.  
  21. exit 0
  22.